package com.ruoyi.business.service.impl;

import java.util.Collections;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.model.PickerModel;
import com.ruoyi.business.response.ApiPlanLayerRes;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.PlanDataMapper;
import com.ruoyi.business.domain.PlanData;
import com.ruoyi.business.service.IPlanDataService;

/**
 * 调研计划关联数据服务Service业务层处理
 * 
 * @author Eric
 * @date 2024-04-10
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class PlanDataServiceImpl extends ServiceImpl<PlanDataMapper, PlanData> implements IPlanDataService {

    @Override
    public List<ApiPlanLayerRes> getPlanLayerByPlanIds(List<Long> planIdList) {
        return baseMapper.getPlanLayerByPlanIds(planIdList);
    }

    @Override
    public List<ApiPlanLayerRes> getPlanLayerByPlanId(Long researchPlanId) {
        return baseMapper.getPlanLayerByPlanId(researchPlanId);
    }

    @Override
    public List<PickerModel> getPlanPickerLayerByPlanId(Long planId) {
        return baseMapper.getPlanPickerLayerByPlanId(planId);
    }

    @Override
    public List<PickerModel> getPlanPickerLayerByPlanId1(Long planId, Long dataTypeId) {
        return baseMapper.getPlanPickerLayerByPlanId1(planId, dataTypeId);
    }
}
